<template>
  <div id="app">
    js

    <ul>
      <h1>get数据</h1>
      <li v-for="(item,index) in list" :key='index'>
        <img :src="item.imgurl" alt="">
      </li>
      <h1>post数据</h1>
      <li></li>
    </ul>
  </div>
</template>

<script>
import {
  initHtml
} from '@/api/mian.js'
export default {
  data () {
    return {
      list: []
    }
  },
  created () {
    this.__init()
    // this.__test()
  },
  methods: {
    __init () {
      initHtml().then(res => {
        this.list = res.data.data.records
        console.log(this.list)
      })
    }
  }
}
</script>

<style lang="scss">

</style>
